home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
bbsutil
/
gapdemo1.zip
/
ARCTRANS.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-04-26
|
691b
|
30 lines
@echo off
REM Called by GAP to transfer a single file out of an archive
REM %1 = Where to put Extracted File (loose directory #1)
REM %2 = Full Path/Name of the Archive File to process
REM %3 = What kind of Archive it is: ARC,ZIP,ICE,LZH,PAK,etc
REM %4 = Name of the file to extract from the Archive
REM %5 = Name to use for the file once it is extracted and recompressed
if %3 == ZIP goto dozip
if %3 == EXE goto dozip
if %3 == ARC goto doarc
if %3 == LZH goto dolzh
goto end
:dozip
pkunzip /o %2 %1\ %4
pkzip /m %1\%5 %1\%4
goto end
:doarc
arc eo %2 %1\ %4
arc a %1\%5 %1\%4
goto end
:dolzh
lha e %2 %1\ %4
lha a %1\%5 %1\%4
:end